import request from "@/utils/request";

type UserForm = {
    username: string,
    password: string
}

// 登录
export const loginApi = (data: UserForm) => {
    return request<{ token: string }>({
        method: 'POST',
        url: '/api/login',
        data
    })
}
